<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    /* 123 */
    /* p {
      border: 2px solid;
      background-color: red !important;
      background-color: blue;
      background-color: green;
      background-color: silver;

    } */
  </style>
</head>

<body>

  
  <div id="app">
    <!-- 第一个vue项目 -->
   vue中内容: {{ message }}
  </div>
  <!--  -->

  <!-- <p>
    这个是什么颜色
  </p> -->
<!-- 
  <p id="p01">这是第一个段落</p>
  <p id="p02" class="coral">这是第二个段落</p>
  <p id="p03">这是第三个段落</p> -->

  <script src="../vue.js""></script>
  <script>
    new Vue(
        {
          el: "#app" ,
          data: {
            message: 'LKl'
          }  ,
          methods: {
            
          },
        }
      )
    </script>
  <script>
    // var x4 = Boolean(null)
    // var x5 = Boolean(undefined)
    // console.log(x4)
    // console.log(x5)

    // var s = "Hope you happy everyday"
    // var patten = /H/g
    // var result = patten.test(s)
    // console.log(result)

    // var x = 18
    // var result1 = x.toString(2)
    // var result2 = x.toString(8)
    // var result3 = x.toString(16)
    // console.log(result1 + " " + result2 + " " + result3)


    // var p = document.getElementsByTagName("p")
    // for (var i = 0; i < p.length; i++) {
    //   console.log(p[i].innerHTML)

    // }

    // var box = new Object()
    // var msg = ""
    // box.color = "red"
    // box.weight = 10
    // box.color = "blue"
    // box.weight = "30"
    // for (x in box) {
    //   msg += box[x]
    // }
    // console.log(msg)


    var teacher = new Object()
    teacher.name = "王老师"
    teacher.age = 40
    teacher.id = "2016123"
    teacher.info = function () {
      return this.name + this.age + this.id;
    }
    console.log(teacher.info())



  </script>
</body>

</html>